Don't post mentions for draft PRs.#1638
Conversation
|
We should try to see if we can ping the moment a PR exits draft status, otherwise it can move to being merged without being pinged very easily. (Not sure what hook to listen on for that, if any). We probably also ought to make bors error on r+ for draft PRs, but that's less important. |
Perhaps I'm misunderstanding the question, but this should do that. When the user clicks "Ready for Review", the webhook sends a |
|
Oh, yes, indeed. Sorry, must have read the diff too quickly. This looks good to me then, thanks! |
The mentions can be quite noisy, so this provides a way to prevent them from being posted. Presumably a draft PR is under construction and may change over time, so the mentions may be premature. Once the author clicks "Ready for review", triagebot will re-scan the PR and post any mentions that haven't already been posted.
cc #1637